package com.javakc.pms.dispord.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@ApiModel(value = "调度指令库管理 - 实体")
@TableName(value = "pms_disp_ord")
public class DispOrd {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "指令名称")
    @TableField(value = "order_name")
    private String orderName;

    @ApiModelProperty(value = "专业类型")
    @TableField(value = "spec_type")
    private Integer specType;

    @ApiModelProperty(value = "指令优先级")
    @TableField(value = "priority")
    private Integer priority;

    @ApiModelProperty(value = "指令描述")
    @TableField(value = "order_desc")
    private String orderDesc;

    @ApiModelProperty(value = "创建时间", example = "2022-12-12 9:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间", example = "2022-12-12 9:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
